package com.htgd.gardenexpo.dao;

import com.htgd.gardenexpo.entity.GeConCompetitionSports;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.htgd.gardenexpo.page.CompetitionSportsQuery;
import com.htgd.gardenexpo.page.MarathonListQuery;
import com.htgd.gardenexpo.page.PageBase;
import com.htgd.gardenexpo.page.RecommendQuery;
import com.htgd.gardenexpo.vo.CompetitionSportsNumsVO;
import com.htgd.gardenexpo.vo.GeConCompetitionSportsVO;
import com.htgd.gardenexpo.vo.MarathonListVO;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 赛事运动 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-09-21
 */
public interface GeConCompetitionSportsMapper extends BaseMapper<GeConCompetitionSports> {

    List<GeConCompetitionSportsVO> pageList(CompetitionSportsQuery competitionSportsQuery);

    List<HashMap> getSmartSportsList(RecommendQuery recommendQuery);

    List<HashMap> getPopularSportsList(RecommendQuery recommendQuery);

    Long getSmartSportsCount(RecommendQuery recommendQuery);

    Long getPopularSportsCount(RecommendQuery recommendQuery);

    List<CompetitionSportsNumsVO> getEntryNums(@Param("startTime") String startTime, @Param("endTime")String endTime, @Param("startDate")String startDate, @Param("endDate")String endDate, @Param("type")String type,@Param("orderBy") String orderBy);

    List<MarathonListVO> marathonList(MarathonListQuery marathonListQuery);
}
